package com.zyw.auth.dao;


import com.zyw.auth.domain.AdminRole;
import com.zyw.kayla.infra.cache.mapper.BaseCrudMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminRoleDao extends BaseCrudMapper<AdminRole> {


    /**
     * 更新管理员-角色关系
     *
     * @param adminRoles
     */
    List<Long> updateAdminRoles(List<AdminRole> adminRoles);

    /**
     * 批量插入管理员-角色关系（个性化的，不属于InsertListMapper）
     *
     * @param adminRoles
     */
    void insertListCustomized(List<AdminRole> adminRoles);
}
